package cn.zhiquxing.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.List;

/**** imports ****/
@Alias("user")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document
@ToString
public class User implements Serializable {
   
   private Long id;
   
   @Field("user_name")
   private String userName;
   
   private String note;
   
   private List<Role> roles; 
}